  <tr>  
		<td><%= @count %></td>
		<td><%= link_to "#{@row['user_first_name']} #{@row['user_last_name']}" , :controller => "account", :action => "show", :id => @row['user_id'] %></td>
		<td id="submission_row_<%= @row['id'] %>">			
		  <% if @row['granted'] == "1" %>
				Granted
			<% elsif @row['granted'] == "0" %>
				Denied  
			<% else %>
              <%= @row['granted'] %>
			<% end %>
		 </td>       
		<td><%= @row['status_name'] %></td>

		<td>
          <%= "#{@row['judge_completed_count'].to_i}/#{@row['judge_total_count'].to_i} Judgments; Score: #{@row['judges_avg_score']}" %><br />
          <%= "#{@row['approval_completed_count'].to_i}/#{@row['approval_total_count'].to_i} Approvals" %><br />
        </td>
		<td align="right"><%=h sprintf("$ %0.2f",@row['total_cost']) %>
    <td>
	    <%= link_to 'Show', :action => 'show', :id => @row['id'] %>
		<br />  
		
		<% if current_user.is_admin? -%>
			<%= link_to 'Change Status', :action => 'edit', :id => @row['id'] %>
			<br />      
		<% end -%>

		<% if ['Completed', 'Judging', 'Approved'].index(@row['status_name']) -%>
    	<%= link_to 'Assign Judges', :action => 'assign_judge', :id => @row['id'] %>
		<br />
		<% end %>
			
			<% if (current_user.is_admin? or current_user.is_adminasst?) and @row['status_name'] == "Completed" %>
				<%= link_to_remote "Grant",
			    :url => { :action => "grant", :id => @row['id'] },
			    :update => "submission_row_#{@row['id']}" ,
			    :complete => [visual_effect(:highlight, "submission_row_#{@row['id']}", :duration => 3), 
				                "new Ajax.Updater('money_spent', '/submission/money_spent/' + $F('filter_cycle'), {asynchronous:true, evalScripts:true})"]  %> 
			
			  <%= link_to_remote "Deny",
				  :url => { :action => "deny", :id => @row['id'] },
			    :update => "submission_row_#{@row['id']}",
			    :complete => [visual_effect(:highlight, "submission_row_#{@row['id']}", :duration => 3), 
				                "new Ajax.Updater('money_spent', '/submission/money_spent/' + $F('filter_cycle'), {asynchronous:true, evalScripts:true})"] %>			
			<% end %>
			
		</td>
	</tr>	
